package com.yunlongcoding.cahuomarketing.param;

import com.yunlongcoding.cahuomarketing.utils.CommonPayUtils;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by IntelliJ IDEA.
 *
 * 商城购物车订单支付参数
 *
 * 参数全部不能为空
 *
 * @author 王云龙
 * @version 1.0
 * @date 8/6/2018  9:46 AM
 */
public class OrderPayParam implements Serializable {

    private static final long serialVersionUID = -1692217797539344396L;

    // 会员id
    private Long memberId ;

    // 是否需要微信支付 0：否 1：是
    private int netWeChatPay ;

    // 总消费金
    private String totalConsumerMoney ;

    // 总微信支付额
    private String totalWeChatPayMoney ;

    // 会员openId
    private String openId ;

    // 订单号
    private String orderNumber ;

    // 商品描述（商品名称）
    private String goodsDescription ;

    // 订单id
    private Long orderId ;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public int getNetWeChatPay() {
        return netWeChatPay;
    }

    public void setNetWeChatPay(int netWeChatPay) {
        this.netWeChatPay = netWeChatPay;
    }

    public String getTotalConsumerMoney() {
        return totalConsumerMoney;
    }

    public BigDecimal getBDTotalConsumerMoney() {
        return CommonPayUtils.conversionString2BigDecimal(totalConsumerMoney) ;
    }

    public void setTotalConsumerMoney(String totalConsumerMoney) {
        this.totalConsumerMoney = totalConsumerMoney;
    }

    public String getTotalWeChatPayMoney() {
        return totalWeChatPayMoney;
    }

    public BigDecimal getBDTotalWeChatPayMoney() {
        return CommonPayUtils.conversionString2BigDecimal(totalWeChatPayMoney) ;
    }

    public void setTotalWeChatPayMoney(String totalWeChatPayMoney) {
        this.totalWeChatPayMoney = totalWeChatPayMoney;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getGoodsDescription() {
        return goodsDescription;
    }

    public void setGoodsDescription(String goodsDescription) {
        this.goodsDescription = goodsDescription;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return "OrderPayParam{" +
                "memberId=" + memberId +
                ", netWeChatPay=" + netWeChatPay +
                ", totalConsumerMoney='" + totalConsumerMoney + '\'' +
                ", totalWeChatPayMoney='" + totalWeChatPayMoney + '\'' +
                ", openId='" + openId + '\'' +
                ", orderNumber='" + orderNumber + '\'' +
                ", goodsDescription='" + goodsDescription + '\'' +
                ", orderId=" + orderId +
                '}';
    }
}
